import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.util.d.ts',
  content: "/*\n * Copyright (c) 2021-2022 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkTS\n */\n/**\n * TextDecoder support full encoding in ICU data utf-8 utf-16 iso8859 must support in all device, TextEncoder takes a\n * stream of code points as input and emits a stream of UTF-8 bytes, and system help function.\n *\n * @namespace util\n * @syscap SystemCapability.Utils.Lang\n * @since 7\n */\n/**\n * TextDecoder support full encoding in ICU data utf-8 utf-16 iso8859 must support in all device, TextEncoder takes a\n * stream of code points as input and emits a stream of UTF-8 bytes, and system help function.\n *\n * @namespace util\n * @syscap SystemCapability.Utils.Lang\n * @crossplatform\n * @since 10\n */\n/**\n * The util module provides common utility functions, such as TextEncoder and TextDecoder for string encoding and decoding,\n * RationalNumber8+ for rational number operations, LRUCache9+ for cache management, ScopeHelper9+ for range determination,\n * Base64Helper9+ for Base64 encoding and decoding, types8+ for built-in object type check, and Aspect11+ for instrumentation\n * and replacement on methods.\n *\n * @namespace util\n * @syscap SystemCapability.Utils.Lang\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare namespace util {\n    /**\n     * %s: String will be used to convert all values except BigInt, Object and -0. BigInt values will be represented\n     * with an n and Objects that have no user defined toString function are inspected using util.inspect() with\n     * options { depth: 0, colors: false, compact: 3 }.\n     * %d: Number will be used to convert all values except BigInt and Symbol.\n     * %i: parseInt(value, 10) is used for all values except BigInt and Symbol.\n     * %f: parseFloat(value) is used for all values except Bigint and Symbol.\n     * %j: JSON. Replaced with the string '[Circular]' if the argument contains circular references.\n     * %o: Object. A string representation of an object with generic JavaScript object formatting.Similar to\n     * util.inspect() with options { showHidden: true, showProxy: true}. This will show the full object including\n     * non-enumerable properties and proxies.\n     * %O: Object. A string representation of an object with generic JavaScript object formatting.\n     * %O: Object. A string representation of an object with generic JavaScript object formatting.Similar to\n     * util.inspect() without options. This will show the full object not including non-enumerable properties and\n     * proxies.\n     * %c: CSS. This specifier is ignored and will skip any CSS passed in.\n     * %%: single percent sign ('%'). This does not consume an argument.Returns: <string> The formatted string.\n     *\n     * @param { string } format - Styled string\n     * @param { Object[] } args - Data to be formatted\n     * @returns { string } Return the character string formatted in a specific format\n     * @syscap SystemCapability.Utils.Lang\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.util.format\n     */\n    function printf(format: string, ...args: Object[]): string;\n    /**\n     * %s: String will be used to convert all values except BigInt, Object and -0. BigInt values will be represented\n     * with an n and Objects that have no user defined toString function are inspected using util.inspect() with\n     * options { depth: 0, colors: false, compact: 3 }.\n     * %d: Number will be used to convert all values except BigInt and Symbol.\n     * %i: parseInt(value, 10) is used for all values except BigInt and Symbol.\n     * %f: parseFloat(value) is used for all values except Bigint and Symbol.\n     * %j: JSON. Replaced with the string '[Circular]' if the argument contains circular references.\n     * %o: Object. A string representation of an object with generic JavaScript object formatting.Similar to\n     * util.inspect() with options { showHidden: true, showProxy: true}. This will show the full object including\n     * non-enumerable properties and proxies.\n     * %O: Object. A string representation of an object with generic JavaScript object formatting.\n     * %O: Object. A string representation of an object with generic JavaScript object formatting.Similar to\n     * util.inspect() without options. This will show the full object not including non-enumerable properties and\n     * proxies.\n     * %c: CSS. This specifier is ignored and will skip any CSS passed in.\n     * %%: single percent sign ('%'). This does not consume an argument.Returns: <string> The formatted string.\n     *\n     * @param { string } format - Styled string\n     * @param { Object[] } args - Data to be formatted\n     * @returns { string } Return the character string formatted in a specific format\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * %s: String will be used to convert all values except BigInt, Object and -0. BigInt values will be represented\n     * with an n and Objects that have no user defined toString function are inspected using util.inspect() with\n     * options { depth: 0, colors: false, compact: 3 }.\n     * %d: Number will be used to convert all values except BigInt and Symbol.\n     * %i: parseInt(value, 10) is used for all values except BigInt and Symbol.\n     * %f: parseFloat(value) is used for all values except Bigint and Symbol.\n     * %j: JSON. Replaced with the string '[Circular]' if the argument contains circular references.\n     * %o: Object. A string representation of an object with generic JavaScript object formatting.Similar to\n     * util.inspect() with options { showHidden: true, showProxy: true}. This will show the full object including\n     * non-enumerable properties and proxies.\n     * %O: Object. A string representation of an object with generic JavaScript object formatting.\n     * %O: Object. A string representation of an object with generic JavaScript object formatting.Similar to\n     * util.inspect() without options. This will show the full object not including non-enumerable properties and\n     * proxies.\n     * %c: CSS. This specifier is ignored and will skip any CSS passed in.\n     * %%: single percent sign ('%'). This does not consume an argument.Returns: <string> The formatted string.\n     *\n     * @param { string } format - Styled string\n     * @param { Object[] } args - Data to be formatted\n     * @returns { string } a string formatted in a specific format.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Formats a string by replacing the placeholders in it.\n     * %s: String will be used to convert all values except BigInt, Object and -0. BigInt values will be represented\n     * with an n and Objects that have no user defined toString function are inspected using util.inspect() with\n     * options { depth: 0, colors: false, compact: 3 }.\n     * %d: Number will be used to convert all values except BigInt and Symbol.\n     * %i: parseInt(value, 10) is used for all values except BigInt and Symbol.\n     * %f: parseFloat(value) is used for all values except Bigint and Symbol.\n     * %j: JSON. Replaced with the string '[Circular]' if the argument contains circular references.\n     * %o: Object. A string representation of an object with generic JavaScript object formatting.Similar to\n     * util.inspect() with options { showHidden: true, showProxy: true}. This will show the full object including\n     * non-enumerable properties and proxies.\n     * %O: Object. A string representation of an object with generic JavaScript object formatting.\n     * %O: Object. A string representation of an object with generic JavaScript object formatting.Similar to\n     * util.inspect() without options. This will show the full object not including non-enumerable properties and\n     * proxies.\n     * %c: CSS. This specifier is ignored and will skip any CSS passed in.\n     * %%: single percent sign ('%'). This does not consume an argument.Returns: <string> The formatted string.\n     *\n     * @param { string } format - Format string. This string contains zero or more placeholders, which specify the\n     * position and format of the arguments to be inserted.\n     * @param { Object[] } args - Data used to replace the placeholders in format. If null is passed in, the first\n     * argument is returned by default.\n     * @returns { string } a string formatted in a specific format.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function format(format: string, ...args: Object[]): string;\n    /**\n     * Get the string name of the system errno.\n     *\n     * @param { number } errno - The error code generated by an error in the system\n     * @returns { string } Return the string name of a system errno\n     * @syscap SystemCapability.Utils.Lang\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.util.errnoToString\n     */\n    function getErrorString(errno: number): string;\n    /**\n     * Get the string name of the system errno.\n     *\n     * @param { number } errno - The error code generated by an error in the system\n     * @returns { string } Return the string name of a system errno\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Get the string name of the system errno.\n     *\n     * @param { number } errno - The error code generated by an error in the system\n     * @returns { string } Return the string name of a system errno\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtains detailed information about a system error code.\n     *\n     * @param { number } errno - Error code generated.\n     * @returns { string } Return the string name of a system errno\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function errnoToString(errno: number): string;\n    /**\n     * Takes an async function (or a function that returns a Promise) and returns a function following the\n     * error-first callback style.\n     *\n     * @param { Function } original - Asynchronous function\n     * @returns { function } Return a Asynchronous function\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 7\n     */\n    /**\n     * Takes an async function (or a function that returns a Promise) and returns a function following the\n     * error-first callback style.\n     *\n     * @param { Function } original - Asynchronous function\n     * @returns { function } Return a Asynchronous function\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Calls back an asynchronous function. In the callback, the first parameter indicates the cause of the rejection\n     * (the value is null if the promise has been resolved), and the second parameter indicates the resolved value.\n     *\n     * @param { Function } original - Asynchronous function.\n     * @returns { function } Return a Asynchronous function\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function callbackWrapper(original: Function): (err: Object, value: Object) => void;\n    /**\n     * Takes a function following the common error-first callback style, i.e taking an (err, value) =>\n     * callback as the last argument, and return a function that returns promises.\n     *\n     * @param { function } original - Asynchronous function\n     * @returns { function } Return a function that returns promises\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Takes a function following the common error-first callback style, i.e taking an (err, value) =>\n     * callback as the last argument, and return a function that returns promises.\n     *\n     * @param { function } original - Asynchronous function\n     * @returns { Function } Return a function that returns promises\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Processes an asynchronous function and returns a promise.\n     *\n     * @param { function } original - Function, in which the first parameter err indicates the cause of the rejection\n     * (the value is null if the promise has been resolved) and the second parameter value indicates the resolved value.\n     * @returns { Function } Return a function that returns promises\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function promisify(original: (err: Object, value: Object) => void): Function;\n    /**\n     * Takes a function following the common error-first callback style, i.e taking an (err, value) =>\n     * callback as the last argument, and return a version that returns promises.\n     *\n     * @param { function } original - Asynchronous function\n     * @returns { Object } Return a version that returns promises\n     * @syscap SystemCapability.Utils.Lang\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.util.promisify\n     */\n    function promiseWrapper(original: (err: Object, value: Object) => void): Object;\n    /**\n     * Generate a random RFC 4122 version 4 UUID using a cryptographically secure random number generator.\n     *\n     * @param { boolean } [entropyCache] - Whether to generate the UUID with using the cache. Default: true.\n     * @returns { string } Return a string representing this UUID.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Generate a random RFC 4122 version 4 UUID using a cryptographically secure random number generator.\n     *\n     * @param { boolean } [entropyCache] - Whether to generate the UUID with using the cache. Default: true.\n     * @returns { string } Return a string representing this UUID.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Uses a secure random number generator to generate a random universally unique identifier (UUID) of the\n     * string type in RFC 4122 version 4.\n     *\n     * @param { boolean } [entropyCache] - Whether to generate the UUID with using the cache. Default: true.\n     * @returns { string } Return a string representing this UUID.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function generateRandomUUID(entropyCache?: boolean): string;\n    /**\n     * Generate a random RFC 4122 version 4 binary UUID using a cryptographically secure random number generator.\n     *\n     * @param { boolean } [entropyCache] - Whether to generate the UUID with using the cache. Default: true.\n     * @returns { Uint8Array } Return a Uint8Array representing this UUID.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Generate a random RFC 4122 version 4 binary UUID using a cryptographically secure random number generator.\n     *\n     * @param { boolean } [entropyCache] - Whether to generate the UUID with using the cache. Default: true.\n     * @returns { Uint8Array } Return a Uint8Array representing this UUID.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Uses a secure random number generator to generate a random UUID of the Uint8Array type in RFC 4122 version 4.\n     *\n     * @param { boolean } [entropyCache] - Whether to generate the UUID with using the cache. Default: true.\n     * @returns { Uint8Array } Return a Uint8Array representing this UUID.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function generateRandomBinaryUUID(entropyCache?: boolean): Uint8Array;\n    /**\n     * Parse a UUID from the string standard representation as described in the RFC 4122 version 4.\n     *\n     * @param { string } uuid - String that specifies a UUID\n     * @returns { Uint8Array } Return a Uint8Array representing this UUID. Throw SyntaxError if parsing fails.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Parse a UUID from the string standard representation as described in the RFC 4122 version 4.\n     *\n     * @param { string } uuid - String that specifies a UUID\n     * @returns { Uint8Array } Return a Uint8Array representing this UUID. Throw SyntaxError if parsing fails.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Converts a UUID of the string type generated by generateRandomUUID to a UUID of the Uint8Array type generated\n     * by generateRandomBinaryUUID, as described in RFC 4122 version 4.\n     *\n     * @param { string } uuid - A string representing the UUID.\n     * @returns { Uint8Array } Return a Uint8Array representing this UUID. Throw SyntaxError if parsing fails.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n     * @throws { BusinessError } 10200002 - Invalid uuid string.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function parseUUID(uuid: string): Uint8Array;\n    /**\n     * Obtains the hash value of an object. If no hash value has been obtained, a random hash value is generated\n     * saved to the hash field of the object, and returned. If a hash value has been obtained, the hash value saved\n     * in the hash field is returned (the same value is returned for the same object).\n     *\n     * @param { object } [object] - Object whose hash value is to be obtained.\n     * @returns { number } Return a hash code of an object.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * 1.Mandatory parameters are left unspecified;\n     * 2.Incorrect parameter types.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function getHash(object: object): number;\n    /**\n     * Get stack trace information for the main thread, returning up to 64 call frames\n     * This interface may impact main thread performance – use with caution.\n     *\n     * @returns { string } Return a stack trace of main thread.\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    function getMainThreadStackTrace(): string;\n    /**\n     * Describes decoding-related options, which include fatal and ignoreBOM.\n     *\n     * @interface TextDecoderOptions\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface TextDecoderOptions {\n        /**\n         * Whether to display fatal errors. The value true means to display fatal errors, and false means the opposite.\n         * The default value is false.\n         * @type { ?boolean }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        fatal?: boolean;\n        /**\n        * Whether to ignore the BOM. The value true means to ignore the BOM, and false means the opposite.\n        * The default value is false.\n        * @type { ?boolean }\n        * @syscap SystemCapability.Utils.Lang\n        * @crossplatform\n        * @atomicservice\n        * @since 11\n        */\n        ignoreBOM?: boolean;\n    }\n    /**\n     * Defines the decode with stream related options parameters.\n     *\n     * @interface DecodeWithStreamOptions\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface DecodeWithStreamOptions {\n        /**\n        * Does the call follow additional data blocks. The default value is false.\n        * @type { ?boolean }\n        * @syscap SystemCapability.Utils.Lang\n        * @crossplatform\n        * @atomicservice\n        * @since 11\n        */\n        stream?: boolean;\n    }\n    /**\n     * Defines the decode with stream related options parameters.\n     *\n     * @interface DecodeToStringOptions\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface DecodeToStringOptions {\n        /**\n        * Stream option controls stream processing in decoding. The default value is false.\n        * @type { ?boolean }\n        * @syscap SystemCapability.Utils.Lang\n        * @crossplatform\n        * @atomicservice\n        * @since 12\n        */\n        stream?: boolean;\n    }\n    /**\n     * The TextDecoder represents a text decoder that accepts a string as input,\n     * decodes it in UTF-8 format, and outputs UTF-8 byte stream.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 7\n     */\n    /**\n     * The TextDecoder represents a text decoder that accepts a string as input,\n     * decodes it in UTF-8 format, and outputs UTF-8 byte stream.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides APIs to decode byte arrays into strings. It supports multiple formats,\n     * including UTF-8, UTF-16LE, UTF-16BE, ISO-8859, and Windows-1251.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    class TextDecoder {\n        /**\n         * The textDecoder constructor.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * The textDecoder constructor.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * A constructor used to create a TextDecoder object.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        constructor();\n        /**\n         * The source encoding's name, lowercased.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 7\n         */\n        /**\n         * The source encoding's name, lowercased.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The source encoding's name, lowercased.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly encoding: string;\n        /**\n         * Returns `true` if error mode is \"fatal\", and `false` otherwise.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 7\n         */\n        /**\n         * Returns `true` if error mode is \"fatal\", and `false` otherwise.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Returns `true` if error mode is \"fatal\", and `false` otherwise.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly fatal: boolean;\n        /**\n         * Returns `true` if ignore BOM flag is set, and `false` otherwise.\n         *\n         * @type { false }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 7\n         */\n        /**\n         * Returns `true` if ignore BOM flag is set, and `false` otherwise.\n         *\n         * @type { false }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Returns `true` if ignore BOM flag is set, and `false` otherwise.\n         *\n         * @type { false }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly ignoreBOM = false;\n        /**\n         * The textDecoder constructor.\n         *\n         * @param { string } encoding - Decoding format\n         * @param { object } options - Options\n         * @syscap SystemCapability.Utils.Lang\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.util.TextDecoder.create\n         */\n        constructor(encoding?: string, options?: {\n            fatal?: boolean;\n            ignoreBOM?: boolean;\n        });\n        /**\n         * Replaces the original constructor to process arguments and return a textDecoder object.\n         *\n         * @param { string } encoding - Decoding format\n         * @param { object } options - Options\n         * @returns { TextDecoder }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Replaces the original constructor to process arguments and return a textDecoder object.\n         *\n         * @param { string } encoding - Decoding format\n         * @param { object } options - Options\n         * @returns { TextDecoder }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a TextDecoder object. It provides the same function as the deprecated argument constructor.\n         *\n         * @param { string } [encoding] - Encoding format. The default format is 'utf-8'.\n         * @param { TextDecoderOptions } [options] - Decoding-related options, which include fatal and ignoreBOM.\n         * @returns { TextDecoder }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        static create(encoding?: string, options?: TextDecoderOptions): TextDecoder;\n        /**\n         * Returns the result of running encoding's decoder.\n         *\n         * @param { Uint8Array } input - Decoded numbers in accordance with the format\n         * @param { object } options - Options\n         * @returns { string } Return decoded text\n         * @syscap SystemCapability.Utils.Lang\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.util.decodeWithStream\n         */\n        decode(input: Uint8Array, options?: {\n            stream?: false;\n        }): string;\n        /**\n         * Decodes the input and returns a string. If options.stream is true, any incomplete byte sequences occurring\n         * at the end of the input are buffered internally and emitted after the next call to textDecoder.decode().\n         * If textDecoder.fatal is true, decoding errors that occur will result in a TypeError being thrown.\n         *\n         * @param { Uint8Array } input - Decoded numbers in accordance with the format\n         * @param { object } options - Options\n         * @returns { string } Return decoded text\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Decodes the input and returns a string. If options.stream is true, any incomplete byte sequences occurring\n         * at the end of the input are buffered internally and emitted after the next call to textDecoder.decode().\n         * If textDecoder.fatal is true, decoding errors that occur will result in a TypeError being thrown.\n         *\n         * @param { Uint8Array } input - Decoded numbers in accordance with the format\n         * @param { object } options - Options\n         * @returns { string } Return decoded text\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Decodes the input and returns a string. If options.stream is true, any incomplete byte sequences occurring\n         * at the end of the input are buffered internally and emitted after the next call to textDecoder.decode().\n         * If textDecoder.fatal is true, decoding errors that occur will result in a TypeError being thrown.\n         *\n         * @param { Uint8Array } input - Decoded numbers in accordance with the format\n         * @param { DecodeWithStreamOptions } [options] - Options\n         * @returns { string } Return decoded text\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         * @deprecated since 12\n         * @useinstead ohos.util.decodeToString\n         */\n        decodeWithStream(input: Uint8Array, options?: DecodeWithStreamOptions): string;\n        /**\n         * Decodes the input content into a string.\n         *\n         * @param { Uint8Array } input - Uint8Array object to decode.\n         * @param { DecodeToStringOptions } [options] -Decoding-related options. The default value is undefined.\n         * @returns { string } Return decoded text\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        decodeToString(input: Uint8Array, options?: DecodeToStringOptions): string;\n    }\n    /**\n     * Return encoded text.\n     *\n     * @interface EncodeIntoUint8ArrayInfo\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface EncodeIntoUint8ArrayInfo {\n        /**\n        * The read represents the number of characters that have been encoded.\n        * @type { number }\n        * @syscap SystemCapability.Utils.Lang\n        * @crossplatform\n        * @atomicservice\n        * @since 11\n        */\n        read: number;\n        /**\n        * The written represents the number of bytes occupied by the encoded characters.\n        * @type { number }\n        * @syscap SystemCapability.Utils.Lang\n        * @crossplatform\n        * @atomicservice\n        * @since 11\n        */\n        written: number;\n    }\n    /**\n     * The TextEncoder interface represents a text encoder.\n     * The encoder takes the byte stream as the input and outputs the String string.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 7\n     */\n    /**\n     * The TextEncoder interface represents a text encoder.\n     * The encoder takes the byte stream as the input and outputs the String string.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * The TextEncoder interface represents a text encoder.\n     * The encoder takes the byte stream as the input and outputs the String string.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    class TextEncoder {\n        /**\n         * Encoding format.\n         *\n         * @type { 'utf-8' }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 7\n         */\n        /**\n         * Encoding format.\n         *\n         * @type { 'utf-8' }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Encoding format.\n         *\n         * @type { 'utf-8' }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        readonly encoding = 'utf-8';\n        /**\n         * The textEncoder constructor.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @since 7\n         */\n        /**\n         * The textEncoder constructor.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * A constructor used to create a TextEncoder object.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        constructor();\n        /**\n         * The textEncoder constructor.\n         *\n         * @param { string } [encoding] - The string for encoding format.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * The textEncoder constructor.\n         *\n         * @param { string } [encoding] - The string for encoding format.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * A constructor used to create a TextEncoder object.\n         *\n         * @param { string } [encoding] - Encoding format. The default format is 'utf-8'.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        constructor(encoding?: string);\n        /**\n         * Creates a TextEncoder object.\n         *\n         * @param { string } [encoding] - Encoding format. The default format is 'utf-8'.\n         * @returns { TextEncoder }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static create(encoding?: string): TextEncoder;\n        /**\n         * Returns the result of encoder.\n         *\n         * @param { string } [input] - The string to be encoded.\n         * @returns { Uint8Array } Returns the encoded text.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.util.encodeInto\n         */\n        encode(input?: string): Uint8Array;\n        /**\n         * UTF-8 encodes the input string and returns a Uint8Array containing the encoded bytes.\n         *\n         * @param { string } [input] - The string to be encoded.\n         * @returns { Uint8Array } Returns the encoded text.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * UTF-8 encodes the input string and returns a Uint8Array containing the encoded bytes.\n         *\n         * @param { string } [input] - The string to be encoded.\n         * @returns { Uint8Array } Returns the encoded text.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Encodes the input content into a Uint8Array object.\n         *\n         * @param { string } [input] - String to encode. The default value is an empty string.\n         * @returns { Uint8Array } Returns the encoded text.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        encodeInto(input?: string): Uint8Array;\n        /**\n         * Encode string, write the result to dest array.\n         *\n         * @param { string } input - The string to be encoded.\n         * @param { Uint8Array } dest - Encoded numbers in accordance with the format\n         * @returns { object } Return the object, where read represents\n         * the number of characters that have been encoded, and written\n         * represents the number of bytes occupied by the encoded characters.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.util.encodeIntoUint8Array\n         */\n        encodeInto(input: string, dest: Uint8Array): {\n            read: number;\n            written: number;\n        };\n        /**\n         * Encode string, write the result to dest array.\n         *\n         * @param { string } input - The string to be encoded.\n         * @param { Uint8Array } dest - Encoded numbers in accordance with the format\n         * @returns { object } Return the object, where read represents\n         * the number of characters that have been encoded, and written\n         * represents the number of bytes occupied by the encoded characters.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Encode string, write the result to dest array.\n         *\n         * @param { string } input - The string to be encoded.\n         * @param { Uint8Array } dest - Encoded numbers in accordance with the format\n         * @returns { object } Return the object, where read represents\n         * the number of characters that have been encoded, and written\n         * represents the number of bytes occupied by the encoded characters.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Encodes the input content into a Uint8Array object.\n         *\n         * @param { string } input - String to encode.\n         * @param { Uint8Array } dest - Uint8Array object used to store the UTF-8 encoded text.\n         * @returns { EncodeIntoUint8ArrayInfo } Return the object, where read represents\n         * the number of characters that have been encoded, and written\n         * represents the number of bytes occupied by the encoded characters.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        encodeIntoUint8Array(input: string, dest: Uint8Array): EncodeIntoUint8ArrayInfo;\n    }\n    /**\n     * The rational number is mainly to compare rational numbers and obtain the numerator and denominator.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 8\n     */\n    /**\n     * The rational number is mainly to compare rational numbers and obtain the numerator and denominator.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * The rational number is mainly to compare rational numbers and obtain the numerator and denominator.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class RationalNumber {\n        /**\n         * A constructor used to create a RationalNumber instance with a given numerator and denominator.\n         *\n         * @param { number } numerator - An integer number\n         * @param { number } denominator - An integer number\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.RationalNumber.parseRationalNumber\n         */\n        constructor(numerator: number, denominator: number);\n        /**\n         * A constructor used to create a RationalNumber instance with a given numerator and denominator.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * A constructor used to create a RationalNumber instance with a given numerator and denominator.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * A constructor used to create a RationalNumber object.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        constructor();\n        /**\n         * Used to create a RationalNumber instance with a given numerator and denominator.\n         *\n         * @param { number } numerator - An integer number\n         * @param { number } denominator - An integer number\n         * @returns { RationalNumber }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Used to create a RationalNumber instance with a given numerator and denominator.\n         *\n         * @param { number } numerator - An integer number\n         * @param { number } denominator - An integer number\n         * @returns { RationalNumber }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Create a RationalNumber instance with a given numerator and denominator.\n         * The numerator and denominator parameters must be integers. If a decimal number is passed in, the function is not\n         * intercepted, but the error message \"parseRationalNumber: The type of Parameter must be integer\" is displayed.\n         *\n         * @param { number } numerator - Numerator, which is an integer.\n         * @param { number } denominator - Denominator, which is an integer.\n         * @returns { RationalNumber }\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static parseRationalNumber(numerator: number, denominator: number): RationalNumber;\n        /**\n         * Creates a RationalNumber object based on a given string.\n         *\n         * @param { string } rationalString - String Expression of Rational Numbers\n         * @returns { RationalNumber } Returns a RationalNumber object generated based on the given string.\n         * @throws { BusinessError } 401 - The type of rationalString must be string.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Creates a RationalNumber object based on a given string.\n         *\n         * @param { string } rationalString - String Expression of Rational Numbers\n         * @returns { RationalNumber } Returns a RationalNumber object generated based on the given string.\n         * @throws { BusinessError } 401 - The type of rationalString must be string.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a RationalNumber object based on the given string.\n         * The rationalString parameter must be a string. If a decimal string is passed in, the function is not intercepted,\n         * but the error message \"createRationalFromString: The type of Parameter must be integer string\" is displayed.\n         *\n         * @param { string } rationalString - String used to create the RationalNumber object.\n         * @returns { RationalNumber } Returns a RationalNumber object generated based on the given string.\n         * @throws { BusinessError } 401 - The type of rationalString must be string.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static createRationalFromString(rationalString: string): RationalNumber;\n        /**\n         * Compares the current RationalNumber object to the given object.\n         *\n         * @param { RationalNumber } another - An object of other rational numbers\n         * @returns { number } Returns 0 or 1, or -1, depending on the comparison.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.compare\n         */\n        compareTo(another: RationalNumber): number;\n        /**\n         * Compares the current RationalNumber object to the given object.\n         *\n         * @param { RationalNumber } another - An object of other rational numbers\n         * @returns { number } Returns 0 or 1, or -1, depending on the comparison.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Compares the current RationalNumber object to the given object.\n         *\n         * @param { RationalNumber } another - An object of other rational numbers\n         * @returns { number } Returns 0 or 1, or -1, depending on the comparison.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Compares this RationalNumber object with another RationalNumber object.\n         *\n         * @param { RationalNumber } another - Object used to compare with this RationalNumber object.\n         * @returns { number } Returns 0 or 1, or -1, depending on the comparison.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        compare(another: RationalNumber): number;\n        /**\n         * Compares two objects for equality.\n         *\n         * @param { Object } obj - An object\n         * @returns { boolean } Returns true if the given object is the same as the current object; Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Compares two objects for equality.\n         *\n         * @param { Object } obj - An object\n         * @returns { boolean } Returns true if the given object is the same as the current object; Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether this RationalNumber object equals the given object.\n         *\n         * @param { Object } obj - Object used to compare with this RationalNumber object.\n         * @returns { boolean } Returns true if the given object is the same as the current object; Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        equals(obj: Object): boolean;\n        /**\n         * Gets integer and floating-point values of a rational number object.\n         *\n         * @returns { number } Returns the integer and floating-point values of a rational number object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Gets integer and floating-point values of a rational number object.\n         *\n         * @returns { number } Returns the integer and floating-point values of a rational number object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the value of this RationalNumber object as an integer or a floating-point number.\n         *\n         * @returns { number } Returns the integer and floating-point values of a rational number object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        valueOf(): number;\n        /**\n         * Get the greatest common divisor of two integers.\n         *\n         * @param { number } number1 - Is an integer.\n         * @param { number } number2 - Is an integer.\n         * @returns { number } Returns the greatest common divisor of two integers, integer type.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.getCommonFactor\n         */\n        static getCommonDivisor(number1: number, number2: number): number;\n        /**\n         * Get the greatest common factor of two integers.\n         *\n         * @param { number } number1 - Is an integer.\n         * @param { number } number2 - Is an integer.\n         * @returns { number } Returns the greatest common factor of two integers, integer type.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Get the greatest common factor of two integers.\n         *\n         * @param { number } number1 - Is an integer.\n         * @param { number } number2 - Is an integer.\n         * @returns { number } Returns the greatest common factor of two integers, integer type.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the greatest common divisor of two specified integers.\n         *\n         * @param { number } number1 - The first integer used to get the greatest common divisor.\n         * @param { number } number2 - The second integer used to get the greatest common divisor.\n         * @returns { number } Returns the greatest common factor of two integers, integer type.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static getCommonFactor(number1: number, number2: number): number;\n        /**\n         * Gets the denominator of the current object.\n         *\n         * @returns { number } Returns the denominator of the current object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Gets the denominator of the current object.\n         *\n         * @returns { number } Returns the denominator of the current object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the denominator of this RationalNumber object.\n         *\n         * @returns { number } Returns the denominator of the current object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getDenominator(): number;\n        /**\n         * Gets the numerator of the current object.\n         *\n         * @returns { number } Returns the numerator of the current object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Gets the numerator of the current object.\n         *\n         * @returns { number } Returns the numerator of the current object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the numerator of this RationalNumber object.\n         *\n         * @returns { number } Returns the numerator of the current object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getNumerator(): number;\n        /**\n         * Checks whether the current RationalNumber object represents an infinite value.\n         *\n         * @returns { boolean } If the denominator is not 0, true is returned. Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Checks whether the current RationalNumber object represents an infinite value.\n         *\n         * @returns { boolean } If the denominator is not 0, true is returned. Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether this RationalNumber object represents a finite value.\n         *\n         * @returns { boolean } If the denominator is not 0, true is returned. Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isFinite(): boolean;\n        /**\n         * Checks whether the current RationalNumber object represents a Not-a-Number (NaN) value.\n         *\n         * @returns { boolean } If both the denominator and numerator are 0, true is returned. Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Checks whether the current RationalNumber object represents a Not-a-Number (NaN) value.\n         *\n         * @returns { boolean } If both the denominator and numerator are 0, true is returned. Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether this RationalNumber object is a Not a Number (NaN).\n         * @returns { boolean } If both the denominator and numerator are 0, true is returned. Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isNaN(): boolean;\n        /**\n         * Checks whether the current RationalNumber object represents the value 0.\n         *\n         * @returns { boolean } If the value represented by the current object is 0, true is returned. Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Checks whether the current RationalNumber object represents the value 0.\n         *\n         * @returns { boolean } If the value represented by the current object is 0, true is returned. Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether this RationalNumber object is 0.\n         *\n         * @returns { boolean } If the value represented by the current object is 0, true is returned. Otherwise, false is returned.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isZero(): boolean;\n        /**\n         * Obtains a string representation of the current RationalNumber object.\n         *\n         * @returns { string } Returns a string representation of the current RationalNumber object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Obtains a string representation of the current RationalNumber object.\n         *\n         * @returns { string } Returns a string representation of the current RationalNumber object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the string representation of this RationalNumber object.\n         *\n         * @returns { string } Returns a string representation of the current RationalNumber object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        toString(): string;\n    }\n    /**\n     * The LruBuffer algorithm replaces the least used data with new data when the buffer space is insufficient.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.util.LRUCache\n     */\n    class LruBuffer<K, V> {\n        /**\n         * Default constructor used to create a new LruBuffer instance with the default capacity of 64.\n         *\n         * @param { number } capacity - Indicates the capacity to customize for the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.constructor\n         */\n        constructor(capacity?: number);\n        /**\n         * Updates the buffer capacity to a specified capacity.\n         *\n         * @param { number } newCapacity - Indicates the new capacity to set.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.updateCapacity\n         */\n        updateCapacity(newCapacity: number): void;\n        /**\n         * Returns a string representation of the object.\n         *\n         * @returns { string } Returns the string representation of the object and outputs the string representation of the object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.toString\n         */\n        toString(): string;\n        /**\n         * Obtains a list of all values in the current buffer.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.length\n         */\n        length: number;\n        /**\n         * Obtains the capacity of the current buffer.\n         *\n         * @returns { number } Returns the capacity of the current buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.getCapacity\n         */\n        getCapacity(): number;\n        /**\n         * Clears key-value pairs from the current buffer.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.clear\n         */\n        clear(): void;\n        /**\n         * Obtains the number of times createDefault(Object) returned a value.\n         *\n         * @returns { number } Returns the number of times createDefault(java.lang.Object) returned a value.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.getCreateCount\n         */\n        getCreateCount(): number;\n        /**\n         * Obtains the number of times that the queried values are not matched.\n         *\n         * @returns { number } Returns the number of times that the queried values are not matched.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.getMissCount\n         */\n        getMissCount(): number;\n        /**\n         * Obtains the number of times that values are evicted from the buffer.\n         *\n         * @returns { number } Returns the number of times that values are evicted from the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.getRemovalCount\n         */\n        getRemovalCount(): number;\n        /**\n         * Obtains the number of times that the queried values are successfully matched.\n         *\n         * @returns { number } Returns the number of times that the queried values are successfully matched.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.getMatchCount\n         */\n        getMatchCount(): number;\n        /**\n         * Obtains the number of times that values are added to the buffer.\n         *\n         * @returns { number } Returns the number of times that values are added to the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.getPutCount\n         */\n        getPutCount(): number;\n        /**\n         * Checks whether the current buffer is empty.\n         *\n         * @returns { boolean } Returns true if the current buffer contains no value.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.isEmpty\n         */\n        isEmpty(): boolean;\n        /**\n         * Obtains the value associated with a specified key.\n         *\n         * @param { K } key - Indicates the key to query.\n         * @returns { V | undefined } Returns the value associated with the key if the specified key is present in the buffer; returns null otherwise.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.get\n         */\n        get(key: K): V | undefined;\n        /**\n         * Adds a key-value pair to the buffer.\n         *\n         * @param { K } key - Indicates the key to add.\n         * @param { V } value - Indicates the value associated with the key to add.\n         * @returns { V } Returns the value associated with the added key; returns the original value if the key to add already exists.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.put\n         */\n        put(key: K, value: V): V;\n        /**\n         * Obtains a list of all values in the current buffer.\n         *\n         * @returns { V[] } Returns the list of all values in the current buffer in ascending order, from the most recently accessed to least recently accessed.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.values\n         */\n        values(): V[];\n        /**\n         * Obtains a list of keys for the values in the current buffer.\n         *\n         * @returns { K[] } Returns a list of keys sorted from most recently accessed to least recently accessed.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.keys\n         */\n        keys(): K[];\n        /**\n         * Deletes a specified key and its associated value from the current buffer.\n         *\n         * @param { K } key - Indicates the key to delete.\n         * @returns { V | undefined } Returns an Optional object containing the deleted key-value pair; returns an empty Optional object if the key does not exist.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.remove\n         */\n        remove(key: K): V | undefined;\n        /**\n         * Executes subsequent operations after a value is deleted.\n         *\n         * @param { boolean } isEvict - The parameter value is true if this method is called due to insufficient capacity,\n         * and the parameter value is false in other cases.\n         * @param { K } key - Indicates the deleted key.\n         * @param { V } value - Indicates the deleted value.\n         * @param { V } newValue - The parameter value is the new value associated if the put(java.lang.Object,java.lang.Object)\n         * method is called and the key to add already exists. The parameter value is null in other cases.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.afterRemoval\n         */\n        afterRemoval(isEvict: boolean, key: K, value: V, newValue: V): void;\n        /**\n         * Checks whether the current buffer contains a specified key.\n         *\n         * @param { K } key - Indicates the key to check.\n         * @returns { boolean } Returns true if the buffer contains the specified key.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.contains\n         */\n        contains(key: K): boolean;\n        /**\n         * Called after a cache miss to compute a value for the corresponding key.\n         *\n         * @param { K } key - Indicates the missed key.\n         * @returns { V } Returns the value associated with the key.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.createDefault\n         */\n        createDefault(key: K): V;\n        /**\n         * Returns an array of key-value pairs of enumeratable properties of a given object.\n         *\n         * @returns { IterableIterator<[K, V]> } Returns an array of key-value pairs for the enumeratable properties of the given object itself.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.entries\n         */\n        entries(): IterableIterator<[\n            K,\n            V\n        ]>;\n        /**\n         * Specifies the default iterator for an object.\n         * @returns { IterableIterator<[K, V]> } Returns a two - dimensional array in the form of key - value pairs.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.LRUCache.[Symbol.iterator]\n         */\n        [Symbol.iterator](): IterableIterator<[\n            K,\n            V\n        ]>;\n    }\n    /**\n     * The LRUCache algorithm replaces the least used data with new data when the buffer space is insufficient.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * The LRUCache algorithm replaces the least used data with new data when the buffer space is insufficient.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides APIs to discard the least recently used data to make rooms for new elements when the cache is full.\n     * This class uses the Least Recently Used (LRU) algorithm, which believes that the recently used data may be accessed\n     * again in the near future and the least accessed data is the least valuable data and should be removed from the cache.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class LRUCache<K, V> {\n        /**\n         * Default constructor used to create a new LruBuffer instance with the default capacity of 64.\n         *\n         * @param { number } [capacity] - Indicates the capacity to customize for the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Default constructor used to create a new LruBuffer instance with the default capacity of 64.\n         *\n         * @param { number } [capacity] - Indicates the capacity to customize for the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * A constructor used to create a LRUCache instance. The default capacity of the cache is 64.\n         *\n         * @param { number } [capacity] - Capacity of the cache to create. The default value is 64.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        constructor(capacity?: number);\n        /**\n         * Updates the buffer capacity to a specified capacity.\n         *\n         * @param { number } newCapacity - Indicates the new capacity to set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Updates the buffer capacity to a specified capacity.\n         *\n         * @param { number } newCapacity - Indicates the new capacity to set.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Changes the cache capacity.\n         *\n         * @param { number } newCapacity - New capacity of the cache.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        updateCapacity(newCapacity: number): void;\n        /**\n         * Returns a string representation of the object.\n         *\n         * @returns { string } Returns the string representation of the object and outputs the string representation of the object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns a string representation of the object.\n         *\n         * @returns { string } Returns the string representation of the object and outputs the string representation of the object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the string representation of this cache.\n         *\n         * @returns { string } Returns the string representation of the object and outputs the string representation of the object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        toString(): string;\n        /**\n         * Obtains a list of all values in the current buffer.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains a list of all values in the current buffer.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Total number of values in this cache.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        length: number;\n        /**\n         * Obtains the capacity of the current buffer.\n         *\n         * @returns { number } Returns the capacity of the current buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the capacity of the current buffer.\n         *\n         * @returns { number } Returns the capacity of the current buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the capacity of this cache.\n         *\n         * @returns { number } Returns the capacity of the current buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getCapacity(): number;\n        /**\n         * Clears key-value pairs from the current buffer.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Clears key-value pairs from the current buffer.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Clears key-value pairs from this cache.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        clear(): void;\n        /**\n         * Obtains the number of times createDefault(Object) returned a value.\n         *\n         * @returns { number } Returns the number of times createDefault(java.lang.Object) returned a value.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the number of times createDefault(Object) returned a value.\n         *\n         * @returns { number } Returns the number of times createDefault(java.lang.Object) returned a value.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the number of times that an object is created.\n         *\n         * @returns { number } Returns the number of times createDefault(java.lang.Object) returned a value.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getCreateCount(): number;\n        /**\n         * Obtains the number of times that the queried values are not matched.\n         *\n         * @returns { number } Returns the number of times that the queried values are not matched.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the number of times that the queried values are not matched.\n         *\n         * @returns { number } Returns the number of times that the queried values are not matched.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the number of times that the queried values are mismatched.\n         *\n         * @returns { number } Returns the number of times that the queried values are not matched.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getMissCount(): number;\n        /**\n         * Obtains the number of times that values are evicted from the buffer.\n         *\n         * @returns { number } Returns the number of times that values are evicted from the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the number of times that values are evicted from the buffer.\n         *\n         * @returns { number } Returns the number of times that values are evicted from the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the number of times that key-value pairs in the cache are recycled.\n         *\n         * @returns { number } Returns the number of times that values are evicted from the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getRemovalCount(): number;\n        /**\n         * Obtains the number of times that the queried values are successfully matched.\n         *\n         * @returns { number } Returns the number of times that the queried values are successfully matched.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the number of times that the queried values are successfully matched.\n         *\n         * @returns { number } Returns the number of times that the queried values are successfully matched.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the number of times that the queried values are matched.\n         *\n         * @returns { number } Returns the number of times that the queried values are successfully matched.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getMatchCount(): number;\n        /**\n         * Obtains the number of times that values are added to the buffer.\n         *\n         * @returns { number } Returns the number of times that values are added to the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the number of times that values are added to the buffer.\n         *\n         * @returns { number } Returns the number of times that values are added to the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the number of additions to this cache.\n         *\n         * @returns { number } Returns the number of times that values are added to the buffer.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getPutCount(): number;\n        /**\n         * Checks whether the current buffer is empty.\n         *\n         * @returns { boolean } Returns true if the current buffer contains no value.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Checks whether the current buffer is empty.\n         *\n         * @returns { boolean } Returns true if the current buffer contains no value.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether this cache is empty.\n         *\n         * @returns { boolean } Returns true if the current buffer contains no value.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isEmpty(): boolean;\n        /**\n         * Obtains the value associated with a specified key.\n         *\n         * @param { K } key - Indicates the key to query.\n         * @returns { V | undefined } Returns the value associated with the key if the specified key is present in the buffer; returns null otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the value associated with a specified key.\n         *\n         * @param { K } key - Indicates the key to query.\n         * @returns { V | undefined } Returns the value associated with the key if the specified key is present in the buffer; returns null otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the value of a key. If the key is not in the cache, createDefault is called to create the key.\n         * If the value specified in createDefault is not undefined, afterRemoval is called to return the value specified in createDefault.\n         *\n         * @param { K } key - Indicates the key to query.\n         * @returns { V | undefined } Returns the value associated with the key if the specified key is present in the buffer; returns null otherwise.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        get(key: K): V | undefined;\n        /**\n         * Adds a key-value pair to the buffer.\n         *\n         * @param { K } key - Indicates the key to add.\n         * @param { V } value - Indicates the value associated with the key to add.\n         * @returns { V } Returns the value associated with the added key; returns the original value if the key to add already exists.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Adds a key-value pair to the buffer.\n         *\n         * @param { K } key - Indicates the key to add.\n         * @param { V } value - Indicates the value associated with the key to add.\n         * @returns { V } Returns the value associated with the added key; returns the original value if the key to add already exists.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Adds a key-value pair to this cache and returns the value associated with the key.\n         * If the total number of values in the cache is greater than the specified capacity, the deletion operation is performed.\n         *\n         * @param { K } key - Indicates the key to add.\n         * @param { V } value - Indicates the value associated with the key to add.\n         * @returns { V } Returns the value associated with the added key; returns the original value if the key to add already exists.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        put(key: K, value: V): V;\n        /**\n         * Obtains a list of all values in the current buffer.\n         *\n         * @returns { V[] } Returns the list of all values in the current buffer in ascending order, from the most recently accessed to least recently accessed.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains a list of all values in the current buffer.\n         *\n         * @returns { V[] } Returns the list of all values in the current buffer in ascending order, from the most recently accessed to least recently accessed.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains all values in this cache, listed from the most to the least recently accessed.\n         *\n         * @returns { V[] } Returns the list of all values in the current buffer in ascending order, from the most recently accessed to least recently accessed.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        values(): V[];\n        /**\n         * Obtains a list of keys for the values in the current buffer.\n         * since 9\n         *\n         * @returns { K[] } Returns a list of keys sorted from most recently accessed to least recently accessed.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains a list of keys for the values in the current buffer.\n         * since 9\n         *\n         * @returns { K[] } Returns a list of keys sorted from most recently accessed to least recently accessed.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains all keys in this cache, listed from the most to the least recently accessed.\n         * since 9\n         *\n         * @returns { K[] } Returns a list of keys sorted from most recently accessed to least recently accessed.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        keys(): K[];\n        /**\n         * Deletes a specified key and its associated value from the current buffer.\n         *\n         * @param { K } key - Indicates the key to delete.\n         * @returns { V | undefined } Returns an Optional object containing the deleted key-value pair; returns an empty Optional object if the key does not exist.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Deletes a specified key and its associated value from the current buffer.\n         *\n         * @param { K } key - Indicates the key to delete.\n         * @returns { V | undefined } Returns an Optional object containing the deleted key-value pair; returns an empty Optional object if the key does not exist.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Removes a key and its associated value from this cache and returns the value associated with the key. If the key does not exist, undefined is returned.\n         *\n         * @param { K } key - Key to remove.\n         * @returns { V | undefined } Returns an Optional object containing the deleted key-value pair; returns an empty Optional object if the key does not exist.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        remove(key: K): V | undefined;\n        /**\n         * Executes subsequent operations after a value is deleted.\n         *\n         * @param { boolean } isEvict - The parameter value is true if this method is called due to insufficient capacity,\n         * and the parameter value is false in other cases.\n         * @param { K } key - Indicates the deleted key.\n         * @param { V } value - Indicates the deleted value.\n         * @param { V } newValue - The parameter value is the new value associated if the put(java.lang.Object,java.lang.Object)\n         * method is called and the key to add already exists. The parameter value is null in other cases.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Executes subsequent operations after a value is deleted.\n         *\n         * @param { boolean } isEvict - The parameter value is true if this method is called due to insufficient capacity,\n         * and the parameter value is false in other cases.\n         * @param { K } key - Indicates the deleted key.\n         * @param { V } value - Indicates the deleted value.\n         * @param { V } newValue - The parameter value is the new value associated if the put(java.lang.Object,java.lang.Object)\n         * method is called and the key to add already exists. The parameter value is null in other cases.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Performs subsequent operations after a value is removed.\n         *\n         * @param { boolean } isEvict - The parameter value is true if this method is called due to insufficient capacity,\n         * and the parameter value is false in other cases.\n         * @param { K } key - Indicates the deleted key.\n         * @param { V } value - Indicates the deleted value.\n         * @param { V } newValue - The parameter value is the new value associated if the put(java.lang.Object,java.lang.Object)\n         * method is called and the key to add already exists. The parameter value is null in other cases.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        afterRemoval(isEvict: boolean, key: K, value: V, newValue: V): void;\n        /**\n         * Checks whether the current buffer contains a specified key.\n         *\n         * @param { K } key - Indicates the key to check.\n         * @returns { boolean } Returns true if the buffer contains the specified key.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Checks whether the current buffer contains a specified key.\n         *\n         * @param { K } key - Indicates the key to check.\n         * @returns { boolean } Returns true if the buffer contains the specified key.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether this cache contains the specified key.\n         *\n         * @param { K } key - Indicates the key to check.\n         * @returns { boolean } Returns true if the buffer contains the specified key.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        contains(key: K): boolean;\n        /**\n         * Executes subsequent operations if miss to compute a value for the specific key.\n         *\n         * @param { K } key - Indicates the missed key.\n         * @returns { V } Returns the value associated with the key.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Executes subsequent operations if miss to compute a value for the specific key.\n         *\n         * @param { K } key - Indicates the missed key.\n         * @returns { V } Returns the value associated with the key.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Performs subsequent operations if no key is matched in the cache and returns the value (undefined by default) associated with the key.\n         *\n         * @param { K } key - Indicates the missed key.\n         * @returns { V } Returns the value associated with the key.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        createDefault(key: K): V;\n        /**\n         * Returns an array of key-value pairs of enumeratable properties of a given object.\n         *\n         * @returns { IterableIterator<[K, V]> } Returns an array of key-value pairs for the enumeratable properties of the given object itself.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns an array of key-value pairs of enumeratable properties of a given object.\n         *\n         * @returns { IterableIterator<[K, V]> } Returns an array of key-value pairs for the enumeratable properties of the given object itself.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains a new iterator object that contains all key-value pairs in this object.\n         *\n         * @returns { IterableIterator<[K, V]> } Returns an array of key-value pairs for the enumeratable properties of the given object itself.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        entries(): IterableIterator<[\n            K,\n            V\n        ]>;\n        /**\n         * Specifies the default iterator for an object.\n         *\n         * @returns { IterableIterator<[K, V]> } Returns a two - dimensional array in the form of key - value pairs.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Specifies the default iterator for an object.\n         *\n         * @returns { IterableIterator<[K, V]> } Returns a two - dimensional array in the form of key - value pairs.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains a two-dimensional array in key-value pairs.\n         *\n         * @returns { IterableIterator<[K, V]> } Returns a two - dimensional array in the form of key - value pairs.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        [Symbol.iterator](): IterableIterator<[\n            K,\n            V\n        ]>;\n    }\n    /**\n     * The ScopeComparable contains comparison methods.\n     *\n     * @interface ScopeComparable\n     * @syscap SystemCapability.Utils.Lang\n     * @since 7\n     */\n    /**\n     * The ScopeComparable contains comparison methods.\n     *\n     * @interface ScopeComparable\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * The values of the ScopeComparable type are used to implement the compareTo method. Therefore,\n     * ensure that the input parameters are comparable.\n     *\n     * @interface ScopeComparable\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface ScopeComparable {\n        /**\n         * The comparison function is used by the scope.\n         *\n         * @param { ScopeComparable } other - Other\n         * @returns { boolean } Returns whether the current object is greater than or equal to the input object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * The comparison function is used by the scope.\n         *\n         * @param { ScopeComparable } other - Other\n         * @returns { boolean } Returns whether the current object is greater than or equal to the input object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Compares two values and returns a Boolean value.\n         *\n         * @param { ScopeComparable } other - The other value to be compared with the current value.\n         * @returns { boolean } Returns whether the current object is greater than or equal to the input object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        compareTo(other: ScopeComparable): boolean;\n    }\n    /**\n     * A type used to denote ScopeComparable or number.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 8\n     */\n    /**\n     * A type used to denote ScopeComparable or number.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Defines the type of values in a Scope object.\n     *\n     * @typedef { ScopeComparable | number }\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    type ScopeType = ScopeComparable | number;\n    /**\n     * The Scope interface is used to describe the valid range of a field.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.util.ScopeHelper\n     */\n    class Scope {\n        /**\n         * A constructor used to create a Scope instance with the lower and upper bounds specified.\n         *\n         * @param { ScopeType } lowerObj - A ScopeType value\n         * @param { ScopeType } upperObj - A ScopeType value\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.constructor\n         */\n        constructor(lowerObj: ScopeType, upperObj: ScopeType);\n        /**\n         * Obtains a string representation of the current range.\n         *\n         * @returns { string } Returns a string representation of the current range object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.toString\n         */\n        toString(): string;\n        /**\n         * Returns the intersection of a given range and the current range.\n         *\n         * @param { Scope } range - A Scope range object\n         * @returns { Scope } Returns the intersection of a given range and the current range.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.intersect\n         */\n        intersect(range: Scope): Scope;\n        /**\n         * Returns the intersection of the current range and the range specified by the given lower and upper bounds.\n         *\n         * @param { ScopeType } lowerObj - A ScopeType value\n         * @param { ScopeType } upperObj - A ScopeType value\n         * @returns { Scope } Returns the intersection of the current range and the range specified by the given lower and upper bounds.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.intersect\n         */\n        intersect(lowerObj: ScopeType, upperObj: ScopeType): Scope;\n        /**\n         * Obtains the upper bound of the current range.\n         *\n         * @returns { ScopeType } Returns the upper bound of the current range.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.getUpper\n         */\n        getUpper(): ScopeType;\n        /**\n         * Obtains the lower bound of the current range.\n         *\n         * @returns { ScopeType } Returns the lower bound of the current range.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.getLower\n         */\n        getLower(): ScopeType;\n        /**\n         * Creates the smallest range that includes the current range and the given lower and upper bounds.\n         *\n         * @param { ScopeType } lowerObj - A ScopeType value\n         * @param { ScopeType } upperObj - A ScopeType value\n         * @returns { Scope } Returns the smallest range that includes the current range and the given lower and upper bounds.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.expand\n         */\n        expand(lowerObj: ScopeType, upperObj: ScopeType): Scope;\n        /**\n         * Creates the smallest range that includes the current range and a given range.\n         *\n         * @param { Scope } range - A Scope range object\n         * @returns { Scope } Returns the smallest range that includes the current range and a given range.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.expand\n         */\n        expand(range: Scope): Scope;\n        /**\n         * Creates the smallest range that includes the current range and a given value.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { Scope } Returns the smallest range that includes the current range and a given value.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.expand\n         */\n        expand(value: ScopeType): Scope;\n        /**\n         * Checks whether a given value is within the current range.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { boolean } If the value is within the current range return true,otherwise return false.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.contains\n         */\n        contains(value: ScopeType): boolean;\n        /**\n         * Checks whether a given range is within the current range.\n         *\n         * @param { Scope } range - A Scope range\n         * @returns { boolean } If the current range is within the given range return true,otherwise return false.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.contains\n         */\n        contains(range: Scope): boolean;\n        /**\n         * Clamps a given value to the current range.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { ScopeType } Returns a ScopeType object that a given value is clamped to the current range..\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.ScopeHelper.clamp\n         */\n        clamp(value: ScopeType): ScopeType;\n    }\n    /**\n     * The ScopeHelper interface is used to describe the valid range of a field.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * The ScopeHelper interface is used to describe the valid range of a field.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides APIs to define the valid range of a field. The constructor of this class creates comparable objects\n     * with lower and upper limits.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class ScopeHelper {\n        /**\n         * A constructor used to create a Scope instance with the lower and upper bounds specified.\n         *\n         * @param { ScopeType } lowerObj - A ScopeType value\n         * @param { ScopeType } upperObj - A ScopeType value\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * A constructor used to create a Scope instance with the lower and upper bounds specified.\n         *\n         * @param { ScopeType } lowerObj - A ScopeType value\n         * @param { ScopeType } upperObj - A ScopeType value\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * A constructor used to create a ScopeHelper object with the specified upper and lower limits.\n         *\n         * @param { ScopeType } lowerObj - Lower limit of the Scope object.\n         * @param { ScopeType } upperObj - Upper limit of the Scope object.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        constructor(lowerObj: ScopeType, upperObj: ScopeType);\n        /**\n         * Obtains a string representation of the current range.\n         *\n         * @returns { string } Returns a string representation of the current range object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains a string representation of the current range.\n         *\n         * @returns { string } Returns a string representation of the current range object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains a string representation that contains this Scope.\n         *\n         * @returns { string } Returns a string representation of the current range object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        toString(): string;\n        /**\n         * Returns the intersection of a given range and the current range.\n         *\n         * @param { ScopeHelper } range - A Scope range object\n         * @returns { ScopeHelper } Returns the intersection of a given range and the current range.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns the intersection of a given range and the current range.\n         *\n         * @param { ScopeHelper } range - A Scope range object\n         * @returns { ScopeHelper } Returns the intersection of a given range and the current range.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the intersection of this Scope and the given Scope.\n         *\n         * @param { ScopeHelper } range - Scope specified.\n         * @returns { ScopeHelper } Returns the intersection of a given range and the current range.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        intersect(range: ScopeHelper): ScopeHelper;\n        /**\n         * Returns the intersection of the current range and the range specified by the given lower and upper bounds.\n         *\n         * @param { ScopeType } lowerObj - A ScopeType value\n         * @param { ScopeType } upperObj - A ScopeType value\n         * @returns { ScopeHelper } Returns the intersection of the current range and the range specified by the given lower and upper bounds.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Returns the intersection of the current range and the range specified by the given lower and upper bounds.\n         *\n         * @param { ScopeType } lowerObj - A ScopeType value\n         * @param { ScopeType } upperObj - A ScopeType value\n         * @returns { ScopeHelper } Returns the intersection of the current range and the range specified by the given lower and upper bounds.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the intersection of this Scope and the given lower and upper limits.\n         *\n         * @param { ScopeType } lowerObj - Lower limit.\n         * @param { ScopeType } upperObj - Upper limit.\n         * @returns { ScopeHelper } Returns the intersection of the current range and the range specified by the given lower and upper bounds.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        intersect(lowerObj: ScopeType, upperObj: ScopeType): ScopeHelper;\n        /**\n         * Obtains the upper bound of the current range.\n         *\n         * @returns { ScopeType } Returns the upper bound of the current range.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the upper bound of the current range.\n         *\n         * @returns { ScopeType } Returns the upper bound of the current range.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the upper limit of this Scope.\n         *\n         * @returns { ScopeType } Returns the upper bound of the current range.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getUpper(): ScopeType;\n        /**\n         * Obtains the lower bound of the current range.\n         *\n         * @returns { ScopeType } Returns the lower bound of the current range.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the lower bound of the current range.\n         *\n         * @returns { ScopeType } Returns the lower bound of the current range.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the lower limit of this Scope.\n         *\n         * @returns { ScopeType } Returns the lower bound of the current range.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getLower(): ScopeType;\n        /**\n         * Creates the smallest range that includes the current range and the given lower and upper bounds.\n         *\n         * @param { ScopeType } lowerObj - A ScopeType value\n         * @param { ScopeType } upperObj - A ScopeType value\n         * @returns { ScopeHelper } Returns the smallest range that includes the current range and the given lower and upper bounds.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Obtains the union set of this Scope and the given lower and upper limits.\n         *\n         * @param { ScopeType } lowerObj - A ScopeType value\n         * @param { ScopeType } upperObj - A ScopeType value\n         * @returns { ScopeHelper } Returns the smallest range that includes the current range and the given lower and upper bounds.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @atomicservice\n         * @since 12\n         */\n        expand(lowerObj: ScopeType, upperObj: ScopeType): ScopeHelper;\n        /**\n         * Creates the smallest range that includes the current range and a given range.\n         *\n         * @param { ScopeHelper } range - A Scope range object\n         * @returns { ScopeHelper } Returns the smallest range that includes the current range and a given range.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Creates the smallest range that includes the current range and a given range.\n         *\n         * @param { ScopeHelper } range - A Scope range object\n         * @returns { ScopeHelper } Returns the smallest range that includes the current range and a given range.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the union set of this Scope and the given Scope.\n         *\n         * @param { ScopeHelper } range - Scope specified.\n         * @returns { ScopeHelper } Returns the smallest range that includes the current range and a given range.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        expand(range: ScopeHelper): ScopeHelper;\n        /**\n         * Creates the smallest range that includes the current range and a given value.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { ScopeHelper } Returns the smallest range that includes the current range and a given value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Creates the smallest range that includes the current range and a given value.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { ScopeHelper } Returns the smallest range that includes the current range and a given value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the union set of this Scope and the given value.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { ScopeHelper } Returns the smallest range that includes the current range and a given value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        expand(value: ScopeType): ScopeHelper;\n        /**\n         * Checks whether a given value is within the current range.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { boolean } If the value is within the current range return true,otherwise return false.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Checks whether a given value is within the current range.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { boolean } If the value is within the current range return true,otherwise return false.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether a value is within this Scope.\n         *\n         * @param { ScopeType } value - Value specified.\n         * @returns { boolean } If the value is within the current range return true,otherwise return false.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        contains(value: ScopeType): boolean;\n        /**\n         * Checks whether a given range is within the current range.\n         *\n         * @param { ScopeHelper } range - A Scope range\n         * @returns { boolean } If the current range is within the given range return true,otherwise return false.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Checks whether a given range is within the current range.\n         *\n         * @param { ScopeHelper } range - A Scope range\n         * @returns { boolean } If the current range is within the given range return true,otherwise return false.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether a range is within this Scope.\n         *\n         * @param { ScopeHelper } range - Scope specified.\n         * @returns { boolean } If the current range is within the given range return true,otherwise return false.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        contains(range: ScopeHelper): boolean;\n        /**\n         * Clamps a given value to the current range.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { ScopeType } Returns a ScopeType object that a given value is clamped to the current range.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Clamps a given value to the current range.\n         *\n         * @param { ScopeType } value - A ScopeType value\n         * @returns { ScopeType } Returns a ScopeType object that a given value is clamped to the current range.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Limits a value to this Scope.\n         *\n         * @param { ScopeType } value - Value specified.\n         * @returns { ScopeType } Returns a ScopeType object that a given value is clamped to the current range.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        clamp(value: ScopeType): ScopeType;\n    }\n    /**\n     * Decodes a Base64 encoded String or input u8 array into a newly-allocated\n     * u8 array using the Base64 encoding scheme.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.util.Base64Helper\n     */\n    class Base64 {\n        /**\n         * Constructor for creating base64 encoding and decoding\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.Base64Helper.constructor\n         */\n        constructor();\n        /**\n         * Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Uint8Array } Return the encoded new Uint8Array.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.Base64Helper.encodeSync\n         */\n        encodeSync(src: Uint8Array): Uint8Array;\n        /**\n         * Encodes the specified byte array into a String using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { string } Return the encoded string.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.Base64Helper.encodeToStringSync\n         */\n        encodeToStringSync(src: Uint8Array): string;\n        /**\n         * Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array | string } src - A Uint8Array value or value A string value\n         * @returns { Uint8Array } Return the decoded Uint8Array.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.Base64Helper.decodeSync\n         */\n        decodeSync(src: Uint8Array | string): Uint8Array;\n        /**\n         * Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Promise<Uint8Array> } Return the encodes asynchronous new Uint8Array.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.Base64Helper.encode\n         */\n        encode(src: Uint8Array): Promise<Uint8Array>;\n        /**\n         * Asynchronously encodes the specified byte array into a String using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Promise<string> } Returns the encoded asynchronous string.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.Base64Helper.encodeToString\n         */\n        encodeToString(src: Uint8Array): Promise<string>;\n        /**\n         * Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or input u8 array into a newly allocated u8 array.\n         *\n         * @param { Uint8Array | string } src - A Uint8Array value or value A string value\n         * @returns { Promise<Uint8Array> } Return the decoded asynchronous Uint8Array.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.util.Base64Helper.decode\n         */\n        decode(src: Uint8Array | string): Promise<Uint8Array>;\n    }\n    /**\n     * The Type represents two different encoding formats for base64\n     *\n     * @enum { number } Type\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * The Type represents two different encoding formats for base64\n     *\n     * @enum { number } Type\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * The Type represents four different encoding formats for base64\n     *\n     * @enum { number } Type\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum Type {\n        /**\n         * The value indicates that the encoding format of base64 is BASIC\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The value indicates that the encoding format of base64 is BASIC\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        BASIC,\n        /**\n         * The value indicates that the encoding format of base64 is MIME\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The value indicates that the encoding format of base64 is MIME\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        MIME,\n        /**\n         * The value indicates that the encoding format of base64 is BASIC_URL_SAFE\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        BASIC_URL_SAFE,\n        /**\n         * The value indicates that the encoding format of base64 is MIME_URL_SAFE\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        MIME_URL_SAFE\n    }\n    /**\n     * Decodes a Base64 encoded String or input u8 array into a newly-allocated\n     * u8 array using the Base64 encoding scheme.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 9\n     */\n    /**\n     * Decodes a Base64 encoded String or input u8 array into a newly-allocated\n     * u8 array using the Base64 encoding scheme.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Decodes a Base64 encoded String or input u8 array into a newly-allocated\n     * u8 array using the Base64 encoding scheme.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    class Base64Helper {\n        /**\n         * Constructor for creating base64 encoding and decoding\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Constructor for creating base64 encoding and decoding\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * A constructor used to create a Base64Helper instance.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        constructor();\n        /**\n         * Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Uint8Array } Return the encoded new Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Uint8Array } Return the encoded new Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Encodes all bytes from the specified u8 array into a newly-allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Uint8Array } Return the encoded new Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Encodes the input content into a Uint8Array object.\n         *\n         * @param { Uint8Array } src - Uint8Array object to encode.\n         * @param { Type } [options] - Encoding format. The following values are available:\n         * - util.Type.BASIC (default): Base64 encoding.\n         * - util.Type.BASIC_URL_SAFE: Base64URL encoding.\n         * @returns { Uint8Array } Return the encoded new Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        encodeSync(src: Uint8Array, options?: Type): Uint8Array;\n        /**\n         * Encodes the specified byte array into a String using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { string } Return the encoded string.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Encodes the specified byte array into a String using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @param { Type } [options] - Enumerating input parameters includes two encoding formats: BASIC and MIME\n         * @returns { string } Return the encoded string.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Encodes the specified byte array into a String using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @param { Type } [options] - Enumerating input parameters includes two encoding formats: BASIC and MIME\n         * @returns { string } Return the encoded string.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Encodes the input content into a string. This API returns the result synchronously.\n         *\n         * @param { Uint8Array } src - Uint8Array object to encode.\n         * @param { Type } [options] - Encoding format. The following values are available:\n         * - util.Type.BASIC (default): Base64 encoding. The return value does not contain carriage return characters or newline characters.\n         * - util.Type.MIME: Base64 encoding. Each line of the return value contains a maximum of 76 characters and ends with '\\r\\n'.\n         * - util.Type.BASIC_URL_SAFE: Base64URL encoding. The return value does not contain carriage return characters or newline characters.\n         * - util.Type.MIME_URL_SAFE: Base64URL encoding. Each line in the return value contains a maximum of 76 characters and ends with '\\r\\n'.\n         * @returns { string } Return the encoded string.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        encodeToStringSync(src: Uint8Array, options?: Type): string;\n        /**\n         * Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array | string } src - A Uint8Array value or value A string value\n         * @returns { Uint8Array } Return the decoded Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array | string } src - A Uint8Array value or value A string value\n         * @param { Type } [options] - Enumerating input parameters includes two encoding formats: BASIC and MIME\n         * @returns { Uint8Array } Return the decoded Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Decodes a Base64 encoded String or input u8 array into a newly-allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array | string } src - A Uint8Array value or value A string value\n         * @param { Type } [options] - Enumerating input parameters includes two encoding formats: BASIC and MIME\n         * @returns { Uint8Array } Return the decoded Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Decodes a string into a Uint8Array object. This API returns the result synchronously.\n         *\n         * @param { Uint8Array | string } src - \tUint8Array object or string to decode.\n         * @param { Type } [options] - Decoding format. The following values are available:\n         * - util.Type.BASIC (default): Base64 decoding.\n         * - util.Type.MIME: Base64 decoding. The input parameter src contains carriage return characters and newline characters.\n         * - util.Type.BASIC_URL_SAFE: Base64URL decoding.\n         * - util.Type.MIME_URL_SAFE: Base64 URL decoding. The input parameter src contains carriage return characters and newline characters.\n         * @returns { Uint8Array } Return the decoded Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        decodeSync(src: Uint8Array | string, options?: Type): Uint8Array;\n        /**\n         * Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Promise<Uint8Array> } Return the encodes asynchronous new Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Promise<Uint8Array> } Return the encodes asynchronous new Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Asynchronously encodes all bytes in the specified u8 array into the newly allocated u8 array using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Promise<Uint8Array> } Return the encodes asynchronous new Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Encodes the input content into a Uint8Array object. This API uses a promise to return the result.\n         *\n         * @param { Uint8Array } src - Uint8Array object to encode.\n         * @param { Type } [options] - Encoding format. The following values are available:\n         * - util.Type.BASIC (default): Base64 encoding.\n         * - util.Type.BASIC_URL_SAFE: Base64URL encoding.\n         * @returns { Promise<Uint8Array> } Return the encodes asynchronous new Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        encode(src: Uint8Array, options?: Type): Promise<Uint8Array>;\n        /**\n         * Asynchronously encodes the specified byte array into a String using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @returns { Promise<string> } Returns the encoded asynchronous string.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Asynchronously encodes the specified byte array into a String using the Base64 encoding scheme.\n         *\n         * @param { Uint8Array } src - A Uint8Array value\n         * @param { Type } [options] - Enumerating input parameters includes two encoding formats: BASIC and MIME\n         * @returns { Promise<string> } Returns the encoded asynchronous string.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Encodes the input content into a string. This API uses a promise to return the result.\n         *\n         * @param { Uint8Array } src - Uint8Array object to encode.\n         * @param { Type } [options] - Encoding format. The following values are available:\n         * - util.Type.BASIC (default): Base64 encoding. The return value does not contain carriage return characters or newline characters.\n         * - util.Type.MIME: Base64 encoding. Each line of the return value contains a maximum of 76 characters and ends with '\\r\\n'.\n         * - util.Type.BASIC_URL_SAFE: Base64URL encoding. The return value does not contain carriage return characters or newline characters.\n         * - util.Type.MIME_URL_SAFE: Base64URL encoding. Each line in the return value contains a maximum of 76 characters and ends with '\\r\\n'.\n         * @returns { Promise<string> } Returns the encoded asynchronous string.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        encodeToString(src: Uint8Array, options?: Type): Promise<string>;\n        /**\n         * Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or\n         * input u8 array into a newly allocated u8 array.\n         *\n         * @param { Uint8Array | string } src - A Uint8Array value or value A string value\n         * @returns { Promise<Uint8Array> } Return the decoded asynchronous Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 9\n         */\n        /**\n         * Use the Base64 encoding scheme to asynchronously decode a Base64-encoded string or\n         * input u8 array into a newly allocated u8 array.\n         *\n         * @param { Uint8Array | string } src - A Uint8Array value or value A string value\n         * @param { Type } [options] - Enumerating input parameters includes two encoding formats: BASIC and MIME\n         * @returns { Promise<Uint8Array> } Return the decoded asynchronous Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Decodes the input content into a Uint8Array object. This API uses a promise to return the result.\n         *\n         * @param { Uint8Array | string } src - Uint8Array object or string to decode.\n         * @param { Type } [options] - Decoding format. The following values are available:\n         * - util.Type.BASIC (default): Base64 decoding.\n         * - util.Type.MIME: Base64 decoding. The input parameter src contains carriage return characters and newline characters.\n         * - util.Type.BASIC_URL_SAFE: Base64URL decoding.\n         * - util.Type.MIME_URL_SAFE: Base64 URL decoding. The input parameter src contains carriage return characters and newline characters.\n         * @returns { Promise<Uint8Array> } Return the decoded asynchronous Uint8Array.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        decode(src: Uint8Array | string, options?: Type): Promise<Uint8Array>;\n    }\n    /**\n     * Check the type of parameter.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @since 8\n     */\n    /**\n     * Check the type of parameter.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Provides APIs to check different types of built-in objects, such as ArrayBuffer, Map, and Set,\n     * so as to avoid exceptions or crashes caused by type errors.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class types {\n        /**\n         * The types constructor\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * The types constructor\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * A constructor used to create a Types object.\n         *\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        constructor();\n        /**\n         * Check whether the entered value is of arraybuffer or sharedarraybuffer type.\n         *\n         * @param { Object } value - A ArrayBuffer or SharedArrayBuffer value\n         * @returns { boolean } Returns true if the value is a built-in ArrayBuffer or SharedArrayBuffer instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of arraybuffer or sharedarraybuffer type.\n         *\n         * @param { Object } value - A ArrayBuffer or SharedArrayBuffer value\n         * @returns { boolean } Returns true if the value is a built-in ArrayBuffer or SharedArrayBuffer instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the ArrayBuffer or SharedArrayBuffer type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in ArrayBuffer or SharedArrayBuffer instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isAnyArrayBuffer(value: Object): boolean;\n        /**\n         * Check whether the type is included in the isAnyArrayBuffer.\n         *\n         * @param { Object } value - A included in the isAnyArrayBuffer value\n         * @returns { boolean } Returns true if the value is an instance of one of the ArrayBuffer views,\n         * such as typed array objects or DataView.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the type is included in the isAnyArrayBuffer.\n         *\n         * @param { Object } value - A included in the isAnyArrayBuffer value\n         * @returns { boolean } Returns true if the value is an instance of one of the ArrayBuffer views,\n         * such as typed array objects or DataView.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the ArrayBufferView type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is an instance of one of the ArrayBuffer views,\n         * such as typed array objects or DataView.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isArrayBufferView(value: Object): boolean;\n        /**\n         * Check whether the entered value is an arguments object type.\n         *\n         * @param { Object } value - A arguments value\n         * @returns { boolean } Returns true if the value is an arguments object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is an arguments object type.\n         *\n         * @param { Object } value - A arguments value\n         * @returns { boolean } Returns true if the value is an arguments object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is an arguments object.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is an arguments object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isArgumentsObject(value: Object): boolean;\n        /**\n         * Check whether the entered value is of arraybuffer type.\n         *\n         * @param { Object } value - A arraybuffer value\n         * @returns { boolean } Returns true if the value is a built-in ArrayBuffer instance. This does not include SharedArrayBuffer instances.\n         * Usually, it is desirable to test for both; See isAnyArrayBuffer() for that.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of arraybuffer type.\n         *\n         * @param { Object } value - A arraybuffer value\n         * @returns { boolean } Returns true if the value is a built-in ArrayBuffer instance. This does not include SharedArrayBuffer instances.\n         * Usually, it is desirable to test for both; See isAnyArrayBuffer() for that.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the ArrayBuffer type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in ArrayBuffer instance. This does not include SharedArrayBuffer instances.\n         * Usually, it is desirable to test for both; See isAnyArrayBuffer() for that.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isArrayBuffer(value: Object): boolean;\n        /**\n         * Check whether the value entered is an asynchronous function type.\n         *\n         * @param { Object } value - A async function value\n         * @returns { boolean } Returns true if the value is an async function. This only reports back what the JavaScript engine is seeing;\n         * in particular, the return value may not match the original source code if a transpilation tool was used.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the value entered is an asynchronous function type.\n         *\n         * @param { Object } value - A async function value\n         * @returns { boolean } Returns true if the value is an async function. This only reports back what the JavaScript engine is seeing;\n         * in particular, the return value may not match the original source code if a transpilation tool was used.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is an asynchronous function.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is an async function. This only reports back what the JavaScript engine is seeing;\n         * in particular, the return value may not match the original source code if a transpilation tool was used.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isAsyncFunction(value: Object): boolean;\n        /**\n         * Check whether the entered value is of bigint64array array type.\n         *\n         * @param { Object } value - A BigInt64Array value\n         * @returns { boolean } Returns true if the value is a BigInt64Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of bigint64array array type.\n         *\n         * @param { Object } value - A BigInt64Array value\n         * @returns { boolean } Returns true if the value is a BigInt64Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the BigInt64Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a BigInt64Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isBigInt64Array(value: Object): boolean;\n        /**\n         * Check whether the entered value is of biguint64array array array type.\n         *\n         * @param { Object } value - A BigUint64Array value\n         * @returns { boolean } Returns true if the value is a BigUint64Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of biguint64array array array type.\n         *\n         * @param { Object } value - A BigUint64Array value\n         * @returns { boolean } Returns true if the value is a BigUint64Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the BigUint64Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a BigUint64Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isBigUint64Array(value: Object): boolean;\n        /**\n         * Check whether the entered value is a Boolean object type.\n         *\n         * @param { Object } value - A boolean object value\n         * @returns { boolean } Returns true if the value is a boolean object, e.g. created by new Boolean().\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is a Boolean object type.\n         *\n         * @param { Object } value - A boolean object value\n         * @returns { boolean } Returns true if the value is a boolean object, e.g. created by new Boolean().\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Check whether the entered value is a Boolean object type.\n         *\n         * @param { Object } value - A boolean object value\n         * @returns { boolean } Returns true if the value is a boolean object, e.g. created by new Boolean().\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         * @deprecated since 14\n         */\n        isBooleanObject(value: Object): boolean;\n        /**\n         * Check whether the entered value is a Boolean or number or string or symbol object type.\n         *\n         * @param { Object } value - A boxed primitive object value\n         * @returns { boolean } Returns true if the value is any boxed primitive object, e.g. created by new Boolean(), new String() or Object(Symbol()).\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is a Boolean or number or string or symbol object type.\n         *\n         * @param { Object } value - A boxed primitive object value\n         * @returns { boolean } Returns true if the value is any boxed primitive object, e.g. created by new Boolean(), new String() or Object(Symbol()).\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Check whether the entered value is a Boolean or number or string or symbol object type.\n         *\n         * @param { Object } value - A boxed primitive object value\n         * @returns { boolean } Returns true if the value is any boxed primitive object, e.g. created by new Boolean(), new String() or Object(Symbol()).\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         * @deprecated since 14\n         */\n        isBoxedPrimitive(value: Object): boolean;\n        /**\n         * Check whether the entered value is of DataView type.\n         *\n         * @param { Object } value - A DataView value\n         * @returns { boolean } Returns true if the value is a built-in DataView instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of DataView type.\n         *\n         * @param { Object } value - A DataView value\n         * @returns { boolean } Returns true if the value is a built-in DataView instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the DataView type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in DataView instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isDataView(value: Object): boolean;\n        /**\n         * Check whether the entered value is of type date.\n         *\n         * @param { Object } value - A Date value\n         * @returns { boolean } Returns true if the value is a built-in Date instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of type date.\n         *\n         * @param { Object } value - A Date value\n         * @returns { boolean } Returns true if the value is a built-in Date instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Date type.\n         *\n         * @param { Object } value -Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Date instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isDate(value: Object): boolean;\n        /**\n         * Check whether the entered value is a native external value type.\n         *\n         * @param { Object } value - A External value\n         * @returns { boolean } Returns true if the value is a native External value.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is a native external value type.\n         *\n         * @param { Object } value - A External value\n         * @returns { boolean } Returns true if the value is a native External value.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the native external type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a native External value.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isExternal(value: Object): boolean;\n        /**\n         * Check whether the entered value is of float32array array type.\n         *\n         * @param { Object } value - A Float32Array value\n         * @returns { boolean } Returns true if the value is a built-in Float32Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of float32array array type.\n         *\n         * @param { Object } value - A Float32Array value\n         * @returns { boolean } Returns true if the value is a built-in Float32Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Float32Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Float32Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isFloat32Array(value: Object): boolean;\n        /**\n         * Check whether the entered value is of float64array array type.\n         *\n         * @param { Object } value - A Float64Array value\n         * @returns { boolean } Returns true if the value is a built-in Float64Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of float64array array type.\n         *\n         * @param { Object } value - A Float64Array value\n         * @returns { boolean } Returns true if the value is a built-in Float64Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Float64Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Float64Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isFloat64Array(value: Object): boolean;\n        /**\n         * Check whether the input value is a generator function type.\n         *\n         * @param { Object } value - A generator function value\n         * @returns { boolean } Returns true if the value is a generator function. This only reports back what the JavaScript engine is seeing; in particular,\n         * the return value may not match the original source code if a transpilation tool was used.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the input value is a generator function type.\n         *\n         * @param { Object } value - A generator function value\n         * @returns { boolean } Returns true if the value is a generator function. This only reports back what the JavaScript engine is seeing; in particular,\n         * the return value may not match the original source code if a transpilation tool was used.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is a generator function.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a generator function. This only reports back what the JavaScript engine is seeing; in particular,\n         * the return value may not match the original source code if a transpilation tool was used.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isGeneratorFunction(value: Object): boolean;\n        /**\n         * Check whether the entered value is a generator object type.\n         *\n         * @param { Object } value - A generator object value\n         * @returns { boolean } Returns true if the value is a generator object as returned from a built-in generator function.\n         * This only reports back what the JavaScript engine is seeing; in particular,\n         *the return value may not match the original source code if a transpilation tool was used.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is a generator object type.\n         *\n         * @param { Object } value - A generator object value\n         * @returns { boolean } Returns true if the value is a generator object as returned from a built-in generator function.\n         * This only reports back what the JavaScript engine is seeing; in particular,\n         *the return value may not match the original source code if a transpilation tool was used.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is a generator object.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a generator object as returned from a built-in generator function.\n         * This only reports back what the JavaScript engine is seeing; in particular,\n         *the return value may not match the original source code if a transpilation tool was used.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isGeneratorObject(value: Object): boolean;\n        /**\n         * Check whether the entered value is of int8array array type.\n         *\n         * @param { Object } value - A Int8Array value\n         * @returns { boolean } Returns true if the value is a built-in Int8Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of int8array array type.\n         *\n         * @param { Object } value - A Int8Array value\n         * @returns { boolean } Returns true if the value is a built-in Int8Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Int8Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Int8Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isInt8Array(value: Object): boolean;\n        /**\n         * Check whether the entered value is the int16array type.\n         *\n         * @param { Object } value - A Int16Array value\n         * @returns { boolean } Returns true if the value is a built-in Int16Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is the int16array type.\n         *\n         * @param { Object } value - A Int16Array value\n         * @returns { boolean } Returns true if the value is a built-in Int16Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Int16Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Int16Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isInt16Array(value: Object): boolean;\n        /**\n         * Check whether the entered value is the int32array array type.\n         *\n         * @param { Object } value - A Int32Array value\n         * @returns { boolean } Returns true if the value is a built-in Int32Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is the int32array array type.\n         *\n         * @param { Object } value - A Int32Array value\n         * @returns { boolean } Returns true if the value is a built-in Int32Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Int32Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Int32Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isInt32Array(value: Object): boolean;\n        /**\n         * Check whether the entered value is of map type.\n         *\n         * @param { Object } value - A Map value\n         * @returns { boolean } Returns true if the value is a built-in Map instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of map type.\n         *\n         * @param { Object } value - A Map value\n         * @returns { boolean } Returns true if the value is a built-in Map instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Map type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Map instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isMap(value: Object): boolean;\n        /**\n         * Check whether the entered value is the iterator type of map.\n         *\n         * @param { Object } value - A Map iterator value\n         * @returns { boolean } Returns true if the value is an iterator returned for a built-in Map instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is the iterator type of map.\n         *\n         * @param { Object } value - A Map iterator value\n         * @returns { boolean } Returns true if the value is an iterator returned for a built-in Map instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the MapIterator type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is an iterator returned for a built-in Map instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isMapIterator(value: Object): boolean;\n        /**\n         * Check whether the entered value is the module namespace object object type.\n         *\n         * @param { Object } value - A Module Namespace Object value\n         * @returns { boolean } Returns true if the value is an instance of a Module Namespace Object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is the module namespace object object type.\n         *\n         * @param { Object } value - A Module Namespace Object value\n         * @returns { boolean } Returns true if the value is an instance of a Module Namespace Object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is a module namespace object.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is an instance of a Module Namespace Object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isModuleNamespaceObject(value: Object): boolean;\n        /**\n         * Check whether the value entered is of type error.\n         *\n         * @param { Object } value - A Error value\n         * @returns { boolean } Returns true if the value is an instance of a built-in Error type.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the value entered is of type error.\n         *\n         * @param { Object } value - A Error value\n         * @returns { boolean } Returns true if the value is an instance of a built-in Error type.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Error type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is an instance of a built-in Error type.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isNativeError(value: Object): boolean;\n        /**\n         * Check whether the entered value is of the number object type.\n         *\n         * @param { Object } value - A number object value\n         * @returns { boolean } Returns true if the value is a number object, e.g. created by new Number().\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of the number object type.\n         *\n         * @param { Object } value - A number object value\n         * @returns { boolean } Returns true if the value is a number object, e.g. created by new Number().\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Check whether the entered value is of the number object type.\n         *\n         * @param { Object } value - A number object value\n         * @returns { boolean } Returns true if the value is a number object, e.g. created by new Number().\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         * @deprecated since 14\n         */\n        isNumberObject(value: Object): boolean;\n        /**\n         * Check whether the entered value is of promise type.\n         *\n         * @param { Object } value - A Promise value\n         * @returns { boolean } Returns true if the value is a built-in Promise.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of promise type.\n         *\n         * @param { Object } value - A Promise value\n         * @returns { boolean } Returns true if the value is a built-in Promise.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is a promise.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Promise.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isPromise(value: Object): boolean;\n        /**\n         * Check whether the value entered is of proxy type.\n         *\n         * @param { Object } value - A Proxy value\n         * @returns { boolean } Returns true if the value is a Proxy instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the value entered is of proxy type.\n         *\n         * @param { Object } value - A Proxy value\n         * @returns { boolean } Returns true if the value is a Proxy instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is a proxy.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a Proxy instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isProxy(value: Object): boolean;\n        /**\n         * Check whether the entered value is of type regexp.\n         *\n         * @param { Object } value - A regular expression object value\n         * @returns { boolean } Returns true if the value is a regular expression object.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of type regexp.\n         *\n         * @param { Object } value - A regular expression object value\n         * @returns { boolean } Returns true if the value is a regular expression object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the RegExp type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a regular expression object.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isRegExp(value: Object): boolean;\n        /**\n         * Check whether the entered value is of type set.\n         *\n         * @param { Object } value - A Set instance value\n         * @returns { boolean } Returns true if the value is a built-in Set instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of type set.\n         *\n         * @param { Object } value - A Set instance value\n         * @returns { boolean } Returns true if the value is a built-in Set instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Set type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Set instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isSet(value: Object): boolean;\n        /**\n         * Check whether the entered value is the iterator type of set.\n         *\n         * @param { Object } value - A Set iterator value\n         * @returns { boolean } Returns true if the value is an iterator returned for a built-in Set instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is the iterator type of set.\n         *\n         * @param { Object } value - A Set iterator value\n         * @returns { boolean } Returns true if the value is an iterator returned for a built-in Set instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the SetIterator type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is an iterator returned for a built-in Set instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isSetIterator(value: Object): boolean;\n        /**\n         * Check whether the entered value is of type sharedarraybuffer.\n         *\n         * @param { Object } value - A SharedArrayBuffer instance value\n         * @returns { boolean } Returns true if the value is a built-in SharedArrayBuffer instance. This does not include ArrayBuffer instances.\n         * Usually, it is desirable to test for both; See isAnyArrayBuffer() for that.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of type sharedarraybuffer.\n         *\n         * @param { Object } value - A SharedArrayBuffer instance value\n         * @returns { boolean } Returns true if the value is a built-in SharedArrayBuffer instance. This does not include ArrayBuffer instances.\n         * Usually, it is desirable to test for both; See isAnyArrayBuffer() for that.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the SharedArrayBuffer type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in SharedArrayBuffer instance. This does not include ArrayBuffer instances.\n         * Usually, it is desirable to test for both; See isAnyArrayBuffer() for that.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isSharedArrayBuffer(value: Object): boolean;\n        /**\n         * Check whether the entered value is a string object type.\n         *\n         * @param { Object } value - A String object value\n         * @returns { boolean } Returns true if the value is a string object, e.g. created by new String().\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is a string object type.\n         *\n         * @param { Object } value - A String object value\n         * @returns { boolean } Returns true if the value is a string object, e.g. created by new String().\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Check whether the entered value is a string object type.\n         *\n         * @param { Object } value - A String object value\n         * @returns { boolean } Returns true if the value is a string object, e.g. created by new String().\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         * @deprecated since 14\n         */\n        isStringObject(value: Object): boolean;\n        /**\n         * Check whether the entered value is a symbol object type.\n         *\n         * @param { Object } value - A symbol object value\n         * @returns { boolean } Returns true if the value is a symbol object, created by calling Object() on a Symbol primitive.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is a symbol object type.\n         *\n         * @param { Object } value - A symbol object value\n         * @returns { boolean } Returns true if the value is a symbol object, created by calling Object() on a Symbol primitive.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Check whether the entered value is a symbol object type.\n         *\n         * @param { Object } value - A symbol object value\n         * @returns { boolean } Returns true if the value is a symbol object, created by calling Object() on a Symbol primitive.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         * @deprecated since 14\n         */\n        isSymbolObject(value: Object): boolean;\n        /**\n         * Check whether the entered value is a type contained in typedarray.\n         *\n         * @param { Object } value - A TypedArray instance value\n         * @returns { boolean } Returns true if the value is a built-in TypedArray instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is a type contained in typedarray.\n         *\n         * @param { Object } value - A TypedArray instance value\n         * @returns { boolean } Returns true if the value is a built-in TypedArray instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the TypedArray type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in TypedArray instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isTypedArray(value: Object): boolean;\n        /**\n         * Check whether the entered value is the uint8array array type.\n         *\n         * @param { Object } value - A Uint8Array value\n         * @returns { boolean } Returns true if the value is a built-in Uint8Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is the uint8array array type.\n         *\n         * @param { Object } value - A Uint8Array value\n         * @returns { boolean } Returns true if the value is a built-in Uint8Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Uint8Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Uint8Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isUint8Array(value: Object): boolean;\n        /**\n         * Check whether the entered value is the uint8clapedarray array type.\n         *\n         * @param { Object } value - A Uint8ClampedArray value\n         * @returns { boolean } Returns true if the value is a built-in Uint8ClampedArray instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is the uint8clapedarray array type.\n         *\n         * @param { Object } value - A Uint8ClampedArray value\n         * @returns { boolean } Returns true if the value is a built-in Uint8ClampedArray instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Uint8ClampedArray type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Uint8ClampedArray instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isUint8ClampedArray(value: Object): boolean;\n        /**\n         * Check whether the entered value is the uint16array array array type.\n         *\n         * @param { Object } value - A Uint16Array value\n         * @returns { boolean } Returns true if the value is a built-in Uint16Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is the uint16array array array type.\n         *\n         * @param { Object } value - A Uint16Array value\n         * @returns { boolean } Returns true if the value is a built-in Uint16Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Uint16Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Uint16Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isUint16Array(value: Object): boolean;\n        /**\n         * Check whether the entered value is the uint32array array type.\n         *\n         * @param { Object } value - A Uint32Array value\n         * @returns { boolean } Returns true if the value is a built-in Uint32Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is the uint32array array type.\n         *\n         * @param { Object } value - A Uint32Array value\n         * @returns { boolean } Returns true if the value is a built-in Uint32Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the Uint32Array type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in Uint32Array instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isUint32Array(value: Object): boolean;\n        /**\n         * Check whether the entered value is of type weakmap.\n         *\n         * @param { Object } value - A WeakMap value\n         * @returns { boolean } Returns true if the value is a built-in WeakMap instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of type weakmap.\n         *\n         * @param { Object } value - A WeakMap value\n         * @returns { boolean } Returns true if the value is a built-in WeakMap instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the WeakMap type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in WeakMap instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isWeakMap(value: Object): boolean;\n        /**\n         * Check whether the entered value is of type weakset.\n         *\n         * @param { Object } value - A WeakSet value\n         * @returns { boolean } Returns true if the value is a built-in WeakSet instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @since 8\n         */\n        /**\n         * Check whether the entered value is of type weakset.\n         *\n         * @param { Object } value - A WeakSet value\n         * @returns { boolean } Returns true if the value is a built-in WeakSet instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the input value is of the WeakSet type.\n         *\n         * @param { Object } value - Object to check.\n         * @returns { boolean } Returns true if the value is a built-in WeakSet instance.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isWeakSet(value: Object): boolean;\n    }\n    /**\n     * Insert before/after logic into a class method or replace implementation for a class method.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Insert before/after logic into a class method or replace implementation for a class method.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class Aspect {\n        /**\n         * Insert some logic before the method. In implementation the method will be replaced with a new function,\n         * which will execute 'before' with the args 'this' and the args of the original method, and then execute\n         * the original method. The return value of the new function is returned by the original method.\n         *\n         * @param { Object } targetClass - The operated class.\n         * @param { string } methodName - The name of the operated method.\n         * @param { boolean } isStatic - The flag whether the method is static.\n         * @param { Function } before - The logic inserted before the method.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Inserts a function before a method of a class object. The inserted function is executed in prior to the original method of the class object.\n         *\n         * @param { Object } targetClass - Target class object.\n         * @param { string } methodName - Name of the method. Read-only methods are not supported.\n         * @param { boolean } isStatic - Whether the method is a static method.\n         * @param { Function } before - Function to insert.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static addBefore(targetClass: Object, methodName: string, isStatic: boolean, before: Function): void;\n        /**\n         * Insert some logic after the method. In implementation the method will be replaced with a new function,\n         * which will execute the original method, and then execute 'after' with the args 'this' and the return value of\n         * the original method, and the args of the original method. The return value of the new function is returned by 'after'.\n         *\n         * @param { Object } targetClass - The operated class.\n         * @param { string } methodName - The name of the operated method.\n         * @param { boolean } isStatic - The flag whether the method is static.\n         * @param { Function } after - The logic inserted after the method.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Inserts a function after a method of a class object. The final return value is the return value of the function inserted.\n         *\n         * @param { Object } targetClass - Target class object.\n         * @param { string } methodName - Name of the method. Read-only methods are not supported.\n         * @param { boolean } isStatic - Whether the method is a static method.\n         * @param { Function } after - Function to insert.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static addAfter(targetClass: Object, methodName: string, isStatic: boolean, after: Function): void;\n        /**\n         * Replace the original method with a new function, which will execute 'instead' with the args 'this' and the args\n         * of the original method. The return value of the new function is returned by 'instead'.\n         *\n         * @param { Object } targetClass - The operated class.\n         * @param { string } methodName - The name of the operated method.\n         * @param { boolean } isStatic - The flag whether the method is static.\n         * @param { Function } instead - The logic replaced with the method.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Replaces a method of a class object with another function. After the replacement, only the new function logic\n         * is executed. The final return value is the return value of the new function.\n         *\n         * @param { Object } targetClass - \tTarget class object.\n         * @param { string } methodName - Name of the method. Read-only methods are not supported.\n         * @param { boolean } isStatic - Whether the method is a static method.\n         * @param { Function } instead - Function to be used replacement.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types.\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        static replace(targetClass: Object, methodName: string, isStatic: boolean, instead: Function): void;\n    }\n    /**\n     * Provide the ability to decode binary streams into strings. The supported encoding types include: utf-8, iso-8859-2,\n     * koi8-r, macintosh, windows-1250, windows-1251, gbk, gb18030, big5, utf-16be, utf-16 le, etc.\n     *\n     * @syscap SystemCapability.Utils.Lang\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    class StringDecoder {\n        /**\n         * Constructor used to create a StringDecoder instance.\n         *\n         * @param { string } [encoding] - Encoding type of the input data. The default value is utf-8.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        constructor(encoding?: string);\n        /**\n         * Returns a decoded string, Any incomplete multi-byte characters at the end of Uint8Array are filtered out from the\n         * returned string and stored in an internal buffer for the next call.\n         *\n         * @param { string | Uint8Array } chunk - String to decode. Decoding is performed based on the input encoding type. If the input is of the Uint8Array type,\n         * decoding is performed normally. If the input is of the string type, decoding is performed in the original path.\n         * @returns { string } Returns a decoded string.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        write(chunk: string | Uint8Array): string;\n        /**\n         * Ends the decoding process and returns any remaining input stored in the internal buffer as a string.\n         *\n         * @param { string | Uint8Array } [chunk] - String to decode. The default value is undefined.\n         * @returns { string } Returns any remaining input stored in the internal buffer as a string.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes:\n         * 1.Mandatory parameters are left unspecified;\n         * 2.Incorrect parameter types;\n         * @syscap SystemCapability.Utils.Lang\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        end(chunk?: string | Uint8Array): string;\n    }\n}\nexport default util;\n",
}
export default FILE;